//
//  ContactModel.m
//  book
//
//  Created by cocoazxj@163.com on 15/4/7.
//  Copyright (c) 2015年 handcool. All rights reserved.
//

#import "ContactModel.h"

@implementation ContactModel
-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.phoneNum forKey:@"phoneNum"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    if(self = [super init])
    {
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.phoneNum = [aDecoder decodeObjectForKey:@"phoneNum"];
    }
    return self;
}
@end
